﻿<%@ Page Language="VB" AutoEventWireup="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Historical Museum</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="default.css" />

</head>
<body>

<form id="form1" runat="server">
    <asp:AccessDataSource ID="article" runat="server" 
        DataFile="~/Database.mdb"         
        
        SelectCommand="SELECT * FROM [Article] WHERE ([categoryId] = ?) ORDER BY [timeOfPost] DESC" 
        ConflictDetection="CompareAllValues" 
        OldValuesParameterFormatString="original_{0}"
        >
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="1" Name="categoryId" 
                QueryStringField="category" Type="Int32" />
        </SelectParameters>
    </asp:AccessDataSource>
    <asp:AccessDataSource ID="caregory" runat="server" 
        DataFile="~/Database.mdb"         
        SelectCommand="SELECT * FROM [Category] ORDER BY [weight], [name], [ID]" 
        OldValuesParameterFormatString="original_{0}"
        >
    </asp:AccessDataSource>
<div id="header">
<a href="#"><img src="images/logo.png" alt="Ocean" /></a>
<div id="rightmenu">
    <table><tr>
    <asp:ListView ID="ListView1" runat="server" DataKeyNames="ID" 
        DataSourceID="caregory" >
        <ItemTemplate>
        <td id="Td1" runat="server" style="">
                <a href="?category=<%# Eval("ID") %>"><%# Eval("name") %></a>
        </td>
        </ItemTemplate>
        <AlternatingItemTemplate>
        <td id="Td1" runat="server" style="">
                <a href="?category=<%# Eval("ID") %>"><%# Eval("name") %></a>
        </td>
        </AlternatingItemTemplate>
        <EmptyDataTemplate>
            <table style="">
                <tr>
                    <td>
                        No data was returned.</td>
                </tr>
            </table>
        </EmptyDataTemplate>
        <LayoutTemplate>
            <table id="Table1" runat="server" border="0" style="text-align: center">
                <tr ID="itemPlaceholderContainer" runat="server">
                    <td ID="itemPlaceholder" runat="server">
                    </td>                    
                    <td style="vertical-align:bottom">
                        <a href="Giftshop.aspx">Gift shop</a>
                    </td>
                </tr>
            </table>
            <div style="">
            </div>
        </LayoutTemplate>
    </asp:ListView>
    </tr></table>
</div></div>
<div id="banner">Banner</div>
<div id="main">
<div id="leftmenu">
<div style="clear:both"></div>
<br />
<div id="bg-left" class="a">
<div id="sidebar" class="b">
<div id="categ">Categories</div>
<div style="clear:both"></div>
<ul>					
	<li><a href="Admin.aspx" target="_blank">Backend</a></li>						
	<li><a href="#">Sub navagator 2</a></li>	
	<li><a href="#">Sub navagator 3</a></li>				
</ul>
</div>
</div>
<div id="ads"><a href="#"><img src="images/ads1.jpg" alt="ads1" /></a><br /><br /><a href="#"><img src="images/ads2.jpg" alt="ads2" /></a><br /><br /><a href="#"><img src="images/ads3.jpg" alt="ads3" /></a></div>
</div>
<div id="image">
<img src="images/1321488911_ba31408a9d_b.jpg"  alt="ocean" width="740" height="366" />
<div id="content">
<div id="page">
    <asp:FormView ID="FormView2" runat="server" AllowPaging="True"
        DataKeyNames="ID" DataSourceID="article" 
        PagerSettings-Mode="NumericFirstLast" Width="100%">
<PagerSettings Mode="NumericFirstLast" PageButtonCount="5"></PagerSettings>
        <ItemTemplate>
            <h1><asp:Label ID="titleLabel" runat="server" Text='<%# Bind("title") %>' /></h1>
            <div style="text-align:left">
            <asp:Label ID="contentLabel" runat="server" Text='<%# Bind("content") %>' />
            </div>
            <div style="text-align:right">
        </ItemTemplate>
        <EmptyDataTemplate>
            <div>No artile</div>
            &nbsp;<asp:Button ID="NewButton" runat="server" CausesValidation="False" 
                CommandName="New" Text="New" />
        </EmptyDataTemplate>      
    </asp:FormView>
    </div>
</div></div>
</div>
<div style="clear:both"></div>
<div id="footer">
<div id="footer-text">
Copyright &copy; 2009 <a href="#">Himury.co.cc</a>.<br />
All rights reserved.<br />
Hotline: +358 (40) 130525<br />
Valid: <a href="http://validator.w3.org/check/referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
</div>
</div>
</form></body>
</html>